package edu.ncst.baseweb.dao.web;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "lab_info")
public class LabInfo extends RequestPage {
    //实验室动态ID
    @TableId(value = "id")
    private Integer id;
    //实验室动态名称
    @TableField(value = "name")
    private String name;
    //实验室动态内容
    @TableField(value = "text")
    private String text;
    //实验室动态时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "time")
    private Date time;
    //实验室动态ID
    public static final String COL_ID = "id";
    //实验室动态名称
    public static final String COL_NAME = "name";
    //实验室动态内容
    public static final String COL_TEXT = "text";
    //实验室动态时间
//    public static final String COL_TIME = "time";
}